<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            display: flex;
            justify-content: space-around;
        }
        .box{
            width: 100px;
            height: 100px;
            border: 1px solid red;
            border-radius: 5px 5px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .ball{
            width: 10px;
            height: 10px;
            background-color: black;
            border-radius: 5px;
        }
        .b2{
            align-items: center;
            justify-content: space-around;
            flex-direction: column;
        }
        .b3{
            justify-content: space-around;
            flex-direction: column;
        }
        .b3 :first-child{
        align-items: flex-start;
        position: relative;
        left: -30px;
        }
        .b3 :last-child{
            position: relative;
            left: 30px;
        }
        .b4{
            justify-content: space-around;
            flex-direction: column;
        }
        .b4 :first-child{
            position: relative;
            left: -25px;
        }
        .b4 :nth-child(2){
            position: relative;
            left: 25px;
            top: -25px;
        }
        .b4 :nth-child(3){
            position: relative;
            left: -25px;
            top: 25px;
        }
        .b4 :last-child{
            position: relative;
            left: 25px;
           
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="ball"></div>

    </div>
    <div class="box b2">
        <div class="ball"></div>
        <div class="ball"></div>
    </div>
    <div class="box b3">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
    </div>
    <div class="box b4">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
    </div>
    <div class="box b5">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        
    </div>
    <div class="box b6">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
    </div>
    <div class="box b7">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        
    </div>
    <div class="box b8">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
    </div>
    <div class="box b9">
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
        <div class="ball"></div>
       
    </div>
</body>
</html>